package com.csii.excelapp.util;

//import com.csii.common.util.PropertyTools;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author: Wb
 * @description:记录一些指标的返回常量
 */
public class IndexConstant {

    public static Map<String, String> indexMap = new HashMap<String, String>();
//    private static String excelSqlVarNames= PropertyTools.getValue("excelSqlVarNames");
    private static List<String> excelSqlVarNameList=new ArrayList<>();

    static {
//        indexMap.put("#OrgN", "五粮液财务有限公司");
//        indexMap.put("#OrgC", "00000001");

        //拆解配置于 default.properties 文件中的 excelSqlVarName
//        if (excelSqlVarNames!=null && !"".equals(excelSqlVarNames)){
//            String[] varNames = excelSqlVarNames.split(",+");
//            for (String varName :varNames) {
//                excelSqlVarNameList.add(varName.trim());
//            }
//        }
    }

    public static String getIndex(String index) {
        return indexMap.get(index);
    }

    public static Map<String, String> getConstantMap() {
        return indexMap;
    }

    public static List<String> getSqlVarNamesList(){
        return excelSqlVarNameList;
    }
}
